import {get,post} from "./http"


//菜单管理接口
//添加
export const menuadd = (params)=>post("/api/menuadd",params);
//列表
export const menulist = (params)=>get("/api/menulist",params);
//获取一条
export const menuinfo = (params)=>get("/api/menuinfo",params);
//修改
export const menuedit = (params)=>post("/api/menuedit",params);
//删除
export const menudelete = (params)=>post("/api/menudelete",params);


//角色管理接口
//添加
export const roleadd = (params)=>post("/api/roleadd",params);
//列表
export const rolelist = (params)=>get("/api/rolelist",params);
//获取一条
export const roleinfo = (params)=>get("/api/roleinfo",params);
//修改
export const roleedit = (params)=>post("/api/roleedit",params);
//删除
export const roledelete = (params)=>post("/api/roledelete",params);

//管理员管理接口
//添加
export const useradd = (params)=>post("/api/useradd",params);
//列表
export const userlist = (params)=>get("/api/userlist",params);
//获取总数
export const usercount = ()=>get("/api/usercount");
//获取一条
export const userinfo = (params)=>get("/api/userinfo",params);
//修改
export const useredit = (params)=>post("/api/useredit",params);
//删除
export const userdelete = (params)=>post("/api/userdelete",params);
//管理员登录
export const userlogin= (params)=>post("/api/userlogin",params);


//商品分类管理接口
//添加
export const cateadd = (params)=>post("/api/cateadd",params,true);
//列表
export const catelist = (params)=>get("/api/catelist",params);
//获取一条
export const cateinfo = (params)=>get("/api/cateinfo",params);
//修改
export const cateedit = (params)=>post("/api/cateedit",params,true);
//删除
export const catedelete = (params)=>post("/api/catedelete",params);


//商品规格管理接口
//添加
export const specsadd = (params)=>post("/api/specsadd",params);
//列表
export const specslist = (params)=>get("/api/specslist",params);
//获取规格总数
export const specscount = ()=>get("/api/specscount");
//获取一条
export const specsinfo = (params)=>get("/api/specsinfo",params);
//修改
export const specsedit = (params)=>post("/api/specsedit",params);
//删除
export const specsdelete = (params)=>post("/api/specsdelete",params);


//商品管理接口
//添加
export const goodsadd = (params)=>post("/api/goodsadd",params,true);
//列表
export const goodslist = (params)=>get("/api/goodslist",params);
//获取规格总数
export const goodscount = ()=>get("/api/goodscount");
//获取一条
export const goodsinfo = (params)=>get("/api/goodsinfo",params);
//修改
export const goodsedit = (params)=>post("/api/goodsedit",params,true);
//删除
export const goodsdelete = (params)=>post("/api/goodsdelete",params);

//会员管理接口
//列表
export const memberlist = ()=>get("/api/memberlist");
//获取一条
export const memberinfo = (params)=>get("/api/memberinfo",params);
//修改
export const memberedit = (params)=>post("/api/memberedit",params);

//轮播图管理接口
//添加
export const banneradd = (params)=>post("/api/banneradd",params,true);
//列表
export const bannerlist = ()=>get("/api/bannerlist");
//获取一条
export const bannerinfo = (params)=>get("/api/bannerinfo",params);
//修改
export const banneredit = (params)=>post("/api/banneredit",params,true);
//删除
export const bannerdelete = (params)=>post("/api/bannerdelete",params);


//限时秒杀管理接口
//添加
export const seckadd = (params)=>post("/api/seckadd",params);
//列表
export const secklist = ()=>get("/api/secklist");
//获取一条
export const seckinfo = (params)=>get("/api/seckinfo",params);
//修改
export const seckedit = (params)=>post("/api/seckedit",params);
//删除
export const seckdelete = (params)=>post("/api/seckdelete",params);

